package com.jiesen.base.modules.certificate.textbook.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.jiesen.base.utils.PageDto;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class JsTextbookBinding extends PageDto {

    @TableId(type = IdType.AUTO)
    private Integer id;     //套餐管理表
    private String name;    //套餐名称
    private Double amount;  //金额
    private String discount;   //折扣
    private String textbook_ids;    //课本id(用逗号分割)

    @TableField(exist = false)
    private List<TextBook> textBooks;   //所包含的课程信息
}
